package io.shdxhl.simplerpc.code.netty;

import io.netty.channel.Channel;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
public class ChannelMapping {
    private String ipWithPort;

    private String ip="127.0.0.1";
    private int port;

    private Channel channel;

    public ChannelMapping( String ip, int port, Channel channel) {
        this.ip = ip;
        this.port = port;
        this.channel = channel;
    }

    public String getIpWithPort() {
        return ip + ":" + port;
    }
}
